Repository navigation
chore(ci): harden CI, release, Ruff, packaging, and test isolation - #22
Merged
Merged
Conversation
Owner
Author
Independent Verification Verdict:
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Why
CI skipped linting hooks and Python scripts outside the core error set, used unpinned actions and
pip install, omitted TypeScript checks on root scripts, and let release jobs publish without running CI or verifying tag parity. Local tests also wrote artifacts into the repo root.slices/directory and~/.gemini/antigravity/brain.Scope
[tool.ruff.lint]inpyproject.tomlto selectE4,E7,E9,F,W, andB, removedE722fromignore, removed"skills/poteto-mode/scripts/*" = ["ALL"]fromper-file-ignores, and fixed all 34 findings acrosscloud_dispatch.py,result_harvester.py,steer_cloud_task.py,storage_messenger.py,agent_hooks.py,execution.py,partner_engine.py,setup_runtime.py, andtests/test_skill_catalog.py..github/workflows/ci.ymlwithworkflow_call,permissions: { contents: read }, branch-awareconcurrency,timeout-minutes: 15, 40-char commit SHA pins for all actions,uv sync --frozen --extra test,bun-version: "1.3.14",bun run typecheck,bash -n,shellcheck -S warning, and packaging archive verification..github/workflows/release.ymlonneeds: cicalling./.github/workflows/ci.yml, pinned all actions to 40-char commit SHAs, addedtimeout-minutes: 15, and added a tag parity gate againstplugin.json,pyproject.toml, anddocs/marketplace-submission.json.scripts/package-plugin.shwith--output-dir,command -v agyfallback warnings,*.test.tsand*.test-helper.tsexclusions, and archive verification in--testmode; set executable mode0755onskills/poteto-mode/scripts/hooks/pre_tool_safety.py.skills/poteto-mode/scripts/tsconfig.json, updatedskills/poteto-mode/scripts/package.jsonandbun.locksobun run typecheckchecksbootstrap.ts,check-plan.test.ts, andwatch-pr/*.tsunder--strict --noEmit, pinnedbun-types(1.3.14) andtypescript(7.0.2), and set"test": "bun test".test_version_parity_and_semver,test_example_configs_and_hook_paths, andtest_packaging_archive_invariantsintests/test_plugin_manifest.py, requireddescriptionfrontmatter intests/test_skill_catalog.py, isolatedtests/test_simulation_scenario.pyinself.base_dirandtests/test_setup_runtime.pydoctormain()tests inisolated_home(), replaced silentruffskips withself.skipTestintests/test_hooks.py, and alignedMakefiletargets (lint,typecheck,doctor,test,package-check,ci).Tradeoffs
shellcheckto-S warningin.github/workflows/ci.ymlandMakefileso existingSC2015A && B || Cidioms inskills/poteto-mode/scripts/worktree-audit.shpass without refactoring unrelated scripts.*.test.tsand*.test-helper.tsfrom distribution archives while keeping runtime.tsscripts required by installed skills.Blast Radius
Touches CI/release workflows,
pyproject.toml,Makefile,scripts/package-plugin.sh, TypeScript configs underskills/poteto-mode/scripts/, hook file mode onpre_tool_safety.py,tests/, and targeted bugbear fixes (B007,B023,B026,B904,B905) inskills/cloud-swarm/scripts/andskills/setup-agystack/scripts/setup_runtime.py. Existing behavior stays intact across the full test suite.Verification
make ciexited0on commit963e97c.uv run ruff check .exited0(All checks passed!).bash -nexited0onscripts/package-plugin.sh,skills/poteto-mode/scripts/worktree-audit.sh, andskills/show-me-your-work/scripts/log.sh.shellcheckis absent on the local macOS host and runs in Ubuntu CI.bun run typecheck(tsc --project tsconfig.json --noEmit --strict) andbun test(47 pass, 0 fail, 159 expect() callsacross 4 files) exited0.uv run python skills/setup-agystack/scripts/setup_runtime.py --doctorexited0("status": "OK").uv run pytest -v --timeout=60 tests/exited0(401 passed, 3 skipped, 153 subtests passed in 23.53s; the 3 skipped tests intests/test_live_cloud_bidirectional.pyrequireAGYSTACK_LIVE_BUCKET).stat -f "%m %N" .slices/harvested_scores.jsonremained1795335757before and after.bash scripts/package-plugin.sh --testverified archive integrity and printed a warning becauseagyis absent on localPATH.printf 'undefined_var + 1\n' | uv run ruff check --stdin-filename skills/poteto-mode/scripts/hooks/pre_tool_safety.py -) exited1withF821.